define(['../ext/loadXml', 'libs/x2js'], function(loadXml, x2js) {
	'use strict';

	return function(setData) {
		var callback = function(data) {
			//在这里设置数据
			var x2js = new X2JS();
			var xmlStringData = x2js.xml_str2json(data.response.recommend.xml);
			console.log("演示二次解xml");
			console.log(xmlStringData.response.specials.special);
			var modelData = {
				title: 'hey!',
				content: 'there is index controller!',
				special: xmlStringData.response.specials.special
			};
			setData(modelData);
		};
		loadXml('data/1000.xml', callback);
	}
});